package home.my.recordmanage.util;

import java.util.LinkedHashMap;
import java.util.Map;

public interface GlobalParameters {

    //ID相关
    public final static long DEFAULT_BEGIN_ID = 1;
    
    //工单状态
    public static enum STATUS{
    	all("-全部- ",-1),dealing("处理中",1),passing("转交",2),notFinish("-未完成-",-2),finished("处理完毕",3),cannotFinish("疑难不能解决",4);
    	
    	public String label;
    	public int value;
    	
    	private STATUS(String label,int value){
    		this.label = label;
    		this.value = value;
    	}
    	
    	public static Map<Integer,String> valueMap(){
    		Map<Integer,String> valueMap = new LinkedHashMap<Integer,String>();
    		for(STATUS s:STATUS.values())
    			valueMap.put(s.value, s.label);
    		return valueMap;
    	}
    	public static Map<String,Integer> labelMap(){
    		Map<String,Integer> labelMap = new LinkedHashMap<String,Integer>();
    		for(STATUS s:STATUS.values())
    			labelMap.put(s.label, s.value);
    		return labelMap;
    	}
    }
    
}
